// agent-ui/src/api/file/fileApi.js

import axios from 'axios';

const fileApi = {
    // 上传头像
    uploadAvatar(file) {
        const formData = new FormData();
        formData.append('file', file);
        
        return axios.post('http://localhost:9527/api/file/upload/avatar', formData, {
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        });
    }
};

export default fileApi; 